package com.xueyi.system.sysCity.service.impl;

import com.xueyi.system.sysCity.domain.query.SysCityQuery;
import com.xueyi.system.sysCity.domain.dto.SysCityDto;
import com.xueyi.system.sysCity.service.ISysCityService;
import com.xueyi.system.sysCity.manager.ISysCityManager;
import com.xueyi.common.web.entity.service.impl.TreeServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 行政区划管理 服务层处理
 *
 * @author xueyi
 */
@Service
public class SysCityServiceImpl extends TreeServiceImpl<SysCityQuery, SysCityDto, ISysCityManager> implements ISysCityService {

    /**
     * 查询行政区划对象列表 | 数据权限 | 附加数据
     *
     * @param city 行政区划对象
     * @return 行政区划对象集合
     */
    @Override
    //@DataScope(userAlias = "createBy", mapperScope = {"SysCityMapper"})
    public List<SysCityDto> selectListScope(SysCityQuery city) {
        return baseManager.selectListExtra(city);
    }

}